package com.gnerv.pabu.basic.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gnerv.pabu.basic.core.entity.OrgInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 基础平台-组织机构详情 mapper的接口
 *
 * @author zhang
 * @date 2019/11/30
 **/
@Mapper
public interface OrgInfoMapper extends BaseMapper<OrgInfo> {

    /**
     * 添加 组织机构详情信息
     *
     * @param orgInfo
     * @return
     */
    int createOrgInfo(@Param("orgInfo") OrgInfo orgInfo);

    /**
     * 根据组织机构业务主键删除
     *
     * @param orgId
     * @return
     */
    int deleteOrgInfo(@Param("orgId") String orgId);

    /**
     * 根据组织机构业务主键查询
     *
     * @param orgId
     * @return
     */
    OrgInfo selectOrgInfo(@Param("orgId") String orgId);

}
